|
Neurosis Engine
|
#include <io_file.h>
Public Member Functions | |
| CNeurosisIO () | |
| ~CNeurosisIO () | |
| Constructor/Deconstructor. | |
Static Public Member Functions | |
| static bool | Create_Dummy_File (const char *filename, int byteSize) |
| Create dummy file. | |
| static void | Log_Append (FILE *pFile, int textColor, bool showDateTime, const char *data,...) |
| Append string to log. | |
| static void | Log_Error (FILE *pFile, int textColor, const char *textInfo) |
| Logs the previous GetLastError() message to log. | |
| static FILE * | Log_Initialize (const char *filename, bool newFile) |
| Initialize log. | |
| static void | Registry_Delete (HKEY key, char *subkey, char *name) |
| Delete registry key. | |
| static CString | Registry_Retrieve (HKEY key, char *subkey, char *name) |
| Retrieve registry key. | |
| static void | Registry_Store (HKEY key, char *subkey, char *name, char *data) |
| Store registry key. | |
| static CString | Retrieve_Data_INI (const char *filename, const char *section, const char *key, const char *defaultValue,...) |
| Retrive string from ini file. | |
| static CString | Retrieve_Data_TXT (const char *filename, const char *token, const char *defaultValue) |
| static CString | Retrieve_Data_URL (const char *urlString, const char *filename) |
| Retrieve string from url (put into retVal or into file filename if given) | |
| static CString | Retrieve_Extension (CString filename) |
| Retrieve extension of file. | |
| static int | Retrieve_File_Size (const char *filename) |
| Retrieve size of file. | |
| static int | Retrieve_File_Time_Create (const char *filename) |
| Retrieve time file was created. | |
| static int | Retrieve_File_Time_Modify (const char *filename) |
| Retrieve time file was modified. | |
| static int | Retrieve_Folder_Time_Create (const char *foldername) |
| Retrieve time folder was created. | |
| static bool | Retrieve_String_Position (FILE *pFile, const char *token, bool resetFilePosition=false) |
| Sets file position to after given string (token is not case sensitive)(returns false if token not found) | |
| static void | Save_Data_INI (const char *filename, const char *section, const char *key, const char *data,...) |
| Save string to ini file. | |
Constructor/Deconstructor.
| static bool CNeurosisIO::Create_Dummy_File | ( | const char * | filename, |
| int | byteSize | ||
| ) | [static] |
Create dummy file.
| static void CNeurosisIO::Log_Append | ( | FILE * | pFile, |
| int | textColor, | ||
| bool | showDateTime, | ||
| const char * | data, | ||
| ... | |||
| ) | [static] |
Append string to log.
| static void CNeurosisIO::Log_Error | ( | FILE * | pFile, |
| int | textColor, | ||
| const char * | textInfo | ||
| ) | [static] |
Logs the previous GetLastError() message to log.
| static FILE* CNeurosisIO::Log_Initialize | ( | const char * | filename, |
| bool | newFile | ||
| ) | [static] |
Initialize log.
| static void CNeurosisIO::Registry_Delete | ( | HKEY | key, |
| char * | subkey, | ||
| char * | name | ||
| ) | [static] |
Delete registry key.
| static CString CNeurosisIO::Registry_Retrieve | ( | HKEY | key, |
| char * | subkey, | ||
| char * | name | ||
| ) | [static] |
Retrieve registry key.
| static void CNeurosisIO::Registry_Store | ( | HKEY | key, |
| char * | subkey, | ||
| char * | name, | ||
| char * | data | ||
| ) | [static] |
Store registry key.
| static CString CNeurosisIO::Retrieve_Data_INI | ( | const char * | filename, |
| const char * | section, | ||
| const char * | key, | ||
| const char * | defaultValue, | ||
| ... | |||
| ) | [static] |
Retrive string from ini file.
| static CString CNeurosisIO::Retrieve_Data_TXT | ( | const char * | filename, |
| const char * | token, | ||
| const char * | defaultValue | ||
| ) | [static] |
Retrieve string from file (token is not case sensitive) Token-Value separator can be either "\t" or " = "
| static CString CNeurosisIO::Retrieve_Data_URL | ( | const char * | urlString, |
| const char * | filename | ||
| ) | [static] |
Retrieve string from url (put into retVal or into file filename if given)
| static CString CNeurosisIO::Retrieve_Extension | ( | CString | filename | ) | [static] |
Retrieve extension of file.
| static int CNeurosisIO::Retrieve_File_Size | ( | const char * | filename | ) | [static] |
Retrieve size of file.
| static int CNeurosisIO::Retrieve_File_Time_Create | ( | const char * | filename | ) | [static] |
Retrieve time file was created.
| static int CNeurosisIO::Retrieve_File_Time_Modify | ( | const char * | filename | ) | [static] |
Retrieve time file was modified.
| static int CNeurosisIO::Retrieve_Folder_Time_Create | ( | const char * | foldername | ) | [static] |
Retrieve time folder was created.
| static bool CNeurosisIO::Retrieve_String_Position | ( | FILE * | pFile, |
| const char * | token, | ||
| bool | resetFilePosition = false |
||
| ) | [static] |
Sets file position to after given string (token is not case sensitive)(returns false if token not found)
| static void CNeurosisIO::Save_Data_INI | ( | const char * | filename, |
| const char * | section, | ||
| const char * | key, | ||
| const char * | data, | ||
| ... | |||
| ) | [static] |
Save string to ini file.
1.7.6.1